// 代理模式
class RealSubject {
    request() {
      console.log("RealSubject");
    }
  }
  
  class FakeProxy {
    realSubject: RealSubject;
    constructor() {
      this.realSubject = new RealSubject();
    }
    request() {
      this.realSubject.request();
    }
  }
  
  const proxy = new FakeProxy();
  proxy.request()